package com.witmore.skyline.web.controller.skyladder;

import com.aliyun.swas_open20200601.models.ModifyFirewallRuleRequest;
import com.witmore.skyline.web.controller.vo.result.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 天梯信息处理
 * Author: 豆子高
 * Date: 2025/2/28 18:06
 */
@RestController
@RequestMapping("api/develop/")
public class SkyLadderController {

    @Autowired
    private SkyLadderService skyLadderService;

    @RequestMapping(value = "skyLadderModify", name = "修改天梯信息")
    public ResponseResult<Void> skyLadderModify(ModifyFirewallRuleRequest rule,
                                          @RequestParam(value = "accessKeyId") String accessKeyId,
                                          @RequestParam(value = "accessKeySecret") String accessKeySecret) throws Exception {
        return skyLadderService.skyLadderModify(rule, accessKeyId, accessKeySecret);
    }
}
